#ifndef QAFARSEKFILELIST_H
#define QAFARSEKFILELIST_H

#include <QTableWidget>
#include <QProgressBar>
#include <QTimer>
#include "CFileSystem.h"

class QAfarsekFileList : public QTableWidget
{
    Q_OBJECT
public:
    explicit QAfarsekFileList(QWidget *parent = 0);
    QAfarsekFileList(const QAfarsekFileList& fileList);
    ~QAfarsekFileList( );

public:
    void UpdateFileList ( void );
    QString DeleteSelectedFile ( void );
    void SetFileSystem (CFileSystem *fileSystem);
    void SetCurrentDeviceNumber(int number);

public:
    QProgressBar    *m_CurrentProgressBar;
    int             m_progressVal;
    bool            m_appearanceChanged;
    bool            m_downloading;
    int             m_currentEdittedDevice;

private:
    CFileSystem     *m_fileSystem;
    QString         m_CurrentlyEdittedName;
    QTimer          *m_timer;

signals:

public slots:
    void on_cellChanged(int row, int column);
    void on_cellDoubleClicked(int row, int column);
    void do_UpdateProgressBar ( int address, int progress );
    void do_UpdateFileList ( void );
    void on_TimerUpdate (void);

};

#endif // QAFARSEKFILELIST_H
